﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="AjaxControlToolkit" %>

<script runat="server">
</script>

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

<asp:DropDownList ID="dropProvince" runat="server">
    <asp:ListItem>请选择</asp:ListItem>
</asp:DropDownList>
<AjaxControlToolkit:CascadingDropDown ID="dropProvince_CascadingDropDown" runat="server" 
    Enabled="True" TargetControlID="dropProvince"
    ServiceMethod="getProvinces" ServicePath="~/asmx/SelectionCities.asmx" Category="province"
    LoadingText="Loading" PromptText="请选择">
</AjaxControlToolkit:CascadingDropDown>省

<asp:DropDownList ID="dropCity" runat="server">
    <asp:ListItem>请选择</asp:ListItem>
</asp:DropDownList>
<AjaxControlToolkit:CascadingDropDown ID="dropCity_CascadingDropDown" runat="server"
    Enabled="True" TargetControlID="dropCity" ParentControlID="dropProvince"
    ServiceMethod="getCities" ServicePath="~/asmx/SelectionCities.asmx" Category="city"
    LoadingText="Loading" PromptText="请选择">
</AjaxControlToolkit:CascadingDropDown>市